<!-- THREE STEPS TO INSTALL NAME ALERT: 1. Paste the coding into the HEAD of your HTML document 2. Copy the onLoad event handler into the BODY tag 3. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!--Total Java Scripts 99 - Next Step Software--> <!-- Begin function testIt() { Response = ""; while ((Response == "") || (Response == "")){ Response=prompt ("Who are you?", ""); } if (Response != null) alert ("Hello, " + Response + "!"); } // End --> </SCRIPT> <!-- STEP TWO: Add this onLoad event handler into the BODY tag --> <BODY onLoad="testIt()"> <!-- STEP THREE: Put this code into the BODY of your HTML document --> <CENTER> <FORM> <INPUT TYPE="button" NAME="button1" VALUE="Hello! Click Here!" onClick="testIt()"> </FORM> </CENTER> <!-- Script Size: 1.00 KB -->
1998 Copyright (C) Next Step All Rights Reserved